// import request from '@/utils/request'//要修改
import $http from '@/lib/http'
// 查询列表
export function page(params) {
  // return request({
  //   url: 'pipeline/execute/logger/page',
  //   method: 'get',
  //   params: data
  // })
  return $http.$get('pipeline/execute/logger/page', params)
}
// 查询详细
export function info(id) {
  // return request({
  //   url: 'pipeline/execute/logger/info',
  //   method: 'get',
  //   params: { 'id': id }
  // })
  return $http.$get('pipeline/execute/logger/info', { 'id': id })
}
// 新增
export function add(params) {
  // return request({
  //   url: 'pipeline/execute/logger/add',
  //   method: 'post',
  //   data: data
  // })
  return $http.$post('pipeline/execute/logger/add', params)
}
// 修改
export function update(params) {
  // return request({
  //   url: 'pipeline/execute/logger/update',
  //   method: 'put',
  //   data: data
  // })

  //put
  return $http.$put('pipeline/execute/logger/update', params)
}
// 删除
export function del(params) {
  // return request({
  //   url: 'pipeline/execute/logger/delete',
  //   method: 'delete',
  //   data: data
  // })

  //delete
  return $http.$delete('pipeline/execute/logger/delete', params)
}
